home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3672 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.3 KB

  1. Path: newsjunkie.ans.net!philabs!jam
  2. From: jam@philabsphilabs.research.philips.com (John A. Murphy)
  3. Newsgroups: comp.lang.misc,comp.lang.perl.misc,comp.lang.tcl,comp.lang.c,comp.lang.java
  4. Subject: Re: Relative Speed of Perl vs. Tcl vs. C
  5. Date: 30 Jan 1996 16:25:19 GMT
  6. Organization: Philips Labs
  7. Distribution: world
  8. Message-ID: <4elgpf$fgp@philabs.research.philips.com>
  9. References: <4e3a2u$eoa@wcap.centerline.com> <4e54vc$7sk@orac.mon.rnb.com>
  10. Reply-To: jam@philabs.research.philips.com
  11. NNTP-Posting-Host: gumby.philabs.research.philips.com
  12. Originator: jam@gumby
  13.  
  14.  
  15. In article <4e54vc$7sk@orac.mon.rnb.com>, hdavies@kzin.mon.rnb.com (Hugh J.E. Davies) writes:
  16. |> In article <4e3a2u$eoa@wcap.centerline.com>, chase@centerline.com (David Chase) writes:
  17. |> >> Randal L. Schwartz (merlyn@stonehenge.com) wrote:
  18. |> >> : Tom Christiansen has had a long-standing bet that someone can't give
  19. |> >> : him a program in C that he can't make run no more than "e" times
  20. |> >> : slower (about 2.8 for you non-math-geeks) in Perl.  So far, no one's
  21. |> >> : done it.
  22. |> >
  23. |> >Is this really true?  What's the bet?  Is a particular piece of hardware
  24. |> >specified?  On modern RISC machines, carefully crafted C can multiply
  25. |> >large matrices at >50% of peak Mflops.  To compete in Perl, I think
  26. |> >you'd have to run the "contest" on a particularly crufty piece of
  27. |> >hardware.
  28. |> 
  29. |> Forgive my ignorance, and please correct me if I'm wrong, but if
  30. |> the 'C' is running faster because of faster hardware, wouldn't perl
  31. |> also? What would make a 'C' program run faster but not the 'perl'
  32. |> interpreter?
  33.  
  34. Super-mini's (Convex amoung others) often have specialized vector and matrix 
  35. hardware that allow it to perform the same operation on large portions of
  36. the vector with a single instruction cycle.  This requires specialized 
  37. optimizing compilers.  PERL wouldn't take advantage of the specialized 
  38. hardware/instruction set and thus would have a worse benchmark.
  39.  
  40. My guess is that the generic term "modern RISC machines" is probably wrong.
  41. Tom's original claim was probably for a UNIX desktop box and would
  42. still hold true.
  43.  
  44. Murf
  45.  
  46. -- 
  47. John A. Murphy (better known as Erin's dad)  jam@philabs.research.philips.com
  48. 345 Scarborough Road
  49. Briarcliff Manor, NY 10510    One one-trillionith of a surprise: picoboo
  50. (914)945-6216               millihellen: The beauty needed to launch 1 ship
  51.